September 14
Announcements
PrimeNumber example programs . Here is a fourth example to go with the 3 we did on Friday. This asks for number and prints that many primes, in a table wtih 10 entries per line.
primes4.py
The Random Module
Example programs:
Rosencrantz.py
This finds the longest string of Heads in n tosses of a coin
Rosencrantz2.py
This tosses a coin until it gets a sequence of Heads of the right length
The Picture Module
This uses file
picture.py
Example program:
testGraphics.py
Functions
Example program:
PrintStars.py
You should read Chapter 6 of the text and Chapter 4 of the Notes, both about
Functions
. .